
<h2 class="title3" style="width: 95%">
	研究中心分类管理	
	<%= link_to(image_tag("add.gif"),"/content/add_research_category", :title => "添加页面") %>
</h2>
<table>
	<tr class="tab">
		<th width="40" align="center">序号</th>
		<th width="120" align="left">分类名称</th>
		<th width="120" align="right">描述</th>
		<th width="120" align="right">操作</th>
	</tr>
 	<% @research_categories.each_with_index do |research_category, index| %>
		<tr onmouseover="this.className='cur_tr';" onmouseout="this.className='';" class="">
			<td align="center" class="number"><%= (index + 1) + (params[:research_category].to_i * 10) %></td>
			<td><%= research_category.name %></td>
			<td><%= research_category.desc.scan(/./)[0, 20].join('') %></td>
			<td align="right">
				<%= link_to image_tag("modify.gif"), :controller => :content, :action => :edit_research_category,:id => research_category.id %>
				<%= link_to image_tag("destroy.gif"), {:controller => :content, :action => :destroy_research_category,:id => research_category.id},{:confirm => "确定删除？"} %>
			</td>
		</tr>
 	<% end %>
	<% if @research_categories.page_count > 1 %>
	<tr><td colspan="3"><%= will_paginate @research_categories %></td></tr>
	<% end %>
</table>
